<extend name="Layout/application"/>

<block name="content">
    <div class="row">
        <div class="col-md-12">

            <div class="row">
                <div class="col-md-8">
                    <div class="page-header">
                        <h1>系统首页</h1>
                    </div>
                </div>
            </div>

            <div class="row">
                <div class="col-md-10">
                    <div class="panel panel-default">
                        <div class="panel-heading">文件编辑</div>
                        <div class="panel-body">
                            <form class="form-horizontal" role="form" method="post" action="{{:U('update')}}">
                                <div class="form-group">
                                    <label for="inputEmail3" class="col-sm-2 control-label">文件名称</label>
                                    <div class="col-sm-10">
                                        <input type="text" class="form-control" value="{{$name}}" name="name" id="inputEmail3" placeholder="名称">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="inputPassword3" class="col-sm-2 control-label">文件内容</label>
                                    <div class="col-sm-10">
                                        <textarea class="form-control" rows="10" id="inputPassword3" name="content" placeholder="内容">{{$content}}</textarea>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-offset-2 col-sm-10">
                                        <button type="submit" class="btn btn-success">修 改</button>
                                    </div>
                                </div>
                            </form>


                        </div>
                    </div>
                </div>


                <div class="col-md-2">
                    <div class="list-group">
                        <a href="javascript: void 0;"
                           class="list-group-item list-group-item-info sort_category" data-toggle="modal"
                           data-target="#myModal">
                            <span class="glyphicon glyphicon-plus" aria-hidden="true"></span> 新增 (add)
                        </a>

                        <a href="javascript: void 0;" class="list-group-item list-group-item-info sort_category">
                            <span class="glyphicon glyphicon-refresh" aria-hidden="true"></span> 排序 (sort)
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </div>


</block>
<block name="js">
    <script>
    </script>
</block>